package com.share.cloudStorage.recycle.model;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("recycle_bin")
public class Recycle {
    @TableId(type = IdType.AUTO)
    private Integer recycleId;
    private Integer userId;
    private Integer fileId;
    private String originalPath;
//    @TableField(condition = "NOW() < DATE_ADD(deleteTime, INTERVAL 10 DAY)")
    private Date deleteTime;
    private Integer isRestored;

    @TableField(exist = false)
    private String fileName;
    @TableField(exist = false)
    private String fileSize;
    @TableField(exist = false)
    private String fileType;
}

